package com.ruoyi.rulengine;



import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;
import com.ruoyi.iotcommon.constant.RocketTopicConstant;
import com.ruoyi.iotcommon.domain.DeviceDataMessage;


/**
 * 设备上报数据监听器
 */
@Service
@RocketMQMessageListener( topic = RocketTopicConstant.DEVICE_DATA, consumerGroup = "iot-rule-engine")
public class DeviceDataListener implements RocketMQListener<DeviceDataMessage>{

    @Override
    public void onMessage(DeviceDataMessage message) {
        // 从缓存查询设备规则，并执行规则引擎
      
    }
    
}
